package com.dz;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

import com.dz.wx.config.WxConfigProperties;

@SpringBootApplication(scanBasePackages = "com.dz")
@EnableConfigurationProperties(WxConfigProperties.class)
@EnableDiscoveryClient
@EnableFeignClients(basePackages = { "com.dz.wx.service", "com.dz.web.common" })
@EnableSwagger2
public class DzWxApplication {

	@Bean
	public CommonsMultipartResolver multipartResolver() {
		CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
		return multipartResolver;
	}

	public static void main(String[] args) {
		SpringApplication.run(DzWxApplication.class, args);
	}
}
